#include <header.h>
  
int main(){
    DIR *dir = opendir("zs/a");
    
    long tel = telldir(dir);


    while (1){
        struct dirent *pdir = readdir(dir);

        //printf("%ld\n",pdir->d_ino);
        if(pdir == NULL){
           seekdir(dir,tel);
           sleep(2);
           continue;
        }


        printf("%ld\n",pdir->d_ino);
    }

    closedir(dir);

    return 0;
}
